package cn.xopencode.userservice.enums;

import cn.xopencode.common.framework.core.IntArrayValuable;

import java.util.Arrays;

/**
 * @Author xiaodawei
 * @since 2021/9/28
 */
public enum EvaluateStatus implements IntArrayValuable {

    EVALUATE_STATUS0(0, "待审批"),
    EVALUATE_STATUS1(1, "已审批"),
    EVALUATE_STATUS2(2, "已驳回");

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(EvaluateStatus::getStatus).toArray();

    /**
     * 部门类型
     */
    private final Integer status;
    /**
     * 描述
     */
    private final String name;

    EvaluateStatus(Integer status, String name) {
        this.status = status;
        this.name = name;
    }

    public Integer getStatus() {
        return status;
    }

    public String getName() {
        return name;
    }

    @Override
    public int[] array() {
        return ARRAYS;
    }
}
